<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "../common/common.ftl"/>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row  layui-col-space10">
        <div class="layui-col-xs12">
            <div class="layui-card" style="width: 2400px">
                <div class="layui-card-body">
                    <button class="layui-btn layui-btn-bg" id="excelBtn"><i
                                class="layui-icon layui-icon-export"></i>导出Excel
                    </button>
                    <table id="dataTable" class="layui-table table" style="text-align: center;width: 2400px">
                        <tr>
                            <td style="text-align: center" colspan="17">${(azProject.projectName)!}${(yearNow)!}年${(month)!}月份物业减免明细</td>
                        </tr>
                        <tr class="layui-bg-gray">
                            <th style="text-align: center" width="3%" rowspan="2">序号</th>
                            <th style="text-align: center" rowspan="2">征收项目</th>
                            <th style="text-align: center" rowspan="2">减免方案</th>
                            <th style="text-align: center" rowspan="2">安置项目</th>
                            <th style="text-align: center" rowspan="2">物业费单价(元/m²)</th>
                            <th style="text-align: center" rowspan="2">楼栋</th>
                            <th style="text-align: center" rowspan="2">房号</th>
                            <th style="text-align: center" rowspan="2">房屋户型</th>
                            <th style="text-align: center" rowspan="2">建筑面积</th>
                            <th style="text-align: center" rowspan="2">减免面积<br/><sapn style="color: red">据实</sapn></th>
                            <th style="text-align: center" rowspan="2">减免金额<br/><sapn style="color: red">对比得出</sapn></th>
                            <th style="text-align: center" colspan="7">参与减免人员信息<span style="color: red">*若减免金额大于房屋面积则按房屋面积计算*</span></th>
                        </tr>
                        <tr class="layui-bg-gray">
                            <th style="text-align: center">姓名</th>
                            <th style="text-align: center">身份证号</th>
                            <th style="text-align: center">开始减免日期</th>
                            <th style="text-align: center">终止减免日期</th>
                            <th style="text-align: center">减免面积（m²）</th>
                            <th style="text-align: center">预计减免金额(元)</th>
                            <th style="text-align: center">备注</th>
                        </tr>
                        <#if getJmMxList??><#--减免基础信息数据-->
                            <#list getJmMxList as itemMap>
                                <#assign peopleJmMxList=(peopleJmMxMap[itemMap.houseId?c])!/>
                                <#assign rowLenth= peopleJmMxList?size/>
                                <#if peopleJmMxList??>
                                    <#list peopleJmMxList as peopleJmMxMap>
                                        <tr>
                                            <#if peopleJmMxMap_index ==0>
                                                <td style="text-align: center" rowspan="${rowLenth}">${itemMap_index+1}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${itemMap.zsProjectName}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${propertyTypeMap[itemMap.propertyType?string]}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${itemMap.azProjectName}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${(itemMap.propertyPrice)!}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${itemMap.buildNum}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${itemMap.houseNum}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${houseHoldMap[itemMap.houseHold?string]}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}">${itemMap.buildArea}</td>
                                                <td style="text-align: center" rowspan="${rowLenth}"></td>
                                                <td style="text-align: center" rowspan="${rowLenth}"></td>
                                            </#if>
                                            <td style="text-align: center">${(peopleJmMxMap.name)!}</td>
                                            <td style="text-align: center">${(peopleJmMxMap.idCard)!}</td>
                                            <td style="text-align: center">${(peopleJmMxMap.startDate)!}</td>
                                            <td style="text-align: center">${(peopleJmMxMap.stopDate)!}</td>
                                            <td style="text-align: center">${(peopleJmMxMap.freeArea)!}</td>
                                            <td style="text-align: center">${(peopleJmMxMap.money)!}</td>
                                            <td style="text-align: center">${(peopleJmMxMap.memo)!}</td>
                                        </tr>
                                    </#list>
                                </#if>
                            </#list>
                        </#if>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<br/>
<br/>
<br/>
<div class="footer">
    <button type="button" class="layui-btn layui-btn-green" id="backBtn">返　回</button>
</div>
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/plugins/jquery/jquery.min.js" charset="utf-8"></script>
<script src="/plugins/tableExcel/jquery.table2excel.js" charset="utf-8"></script>
<script>
    layui.config({
        base: '/modules/' //静态资源所在路径
    }).use(['jquery'], function () {
        var $ = layui.jquery;

        $("#backBtn").click(function () {
            javascript:history.back(-1);
        });
    });
    $("#excelBtn").click(function () {
        $(".table").table2excel({
            exclude: ".noExl",
            name: "选房情况明细",
            filename: "选房情况明细",
            exclude_img: true,
            exclude_links: true,
            exclude_inputs: true
        });
    });
</script>
</body>
</html>